//===================主页面列表=====================
//核达的
export const MACHINE_COLUMN = [
  {
    label: '站位表名称',
    prop: 'name',
    order: 2,
    search: true
  },
  {
    label: '机型',
    prop: 'partModel'
  },
  {
    label: '面向',
    prop: 'side',
    type: 'select',
    order: 3,
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    search: true,
    dicUrl: '/api/blade-system/dict/dictionary?code=side_type',
    rules: [
      {
        required: true,
        message: '请选择 面向',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '机台号',
    prop: 'machineCode',
    search: true,
    order: 4
  },
  {
    label: '站位表版本',
    prop: 'tableVersion'
  },
  {
    label: '状态',
    prop: 'status',
    align: 'center',
    search: true,
    type: 'select',
    dicData: [
      { label: '启用', value: 1 },
      { label: '禁用', value: 0 }
    ]
  },
  {
    label: '站位表编码',
    prop: 'code',
    disabled: true,
    rules: [
      {
        required: true,
        message: '请输入站位表编码',
        trigger: 'blur'
      }
    ]
  }
];
// 产品的
export const MACHINE_BRAND_COLUMN = [
  {
    label: '产品编码', //，可以多个，‘，’分隔，供详情选择产品时过滤使用
    prop: 'partNos',
    disabled: true,
    search: true,
    rules: [
      {
        required: true,
        message: '请输入产品编码',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '产品名称',
    prop: 'partNames'
  },
  {
    label: '产品型号',
    prop: 'partModel'
  },
  {
    label: '站位表名称',
    prop: 'name',
    order: 2,
    search: true
  },
  {
    label: '面向',
    prop: 'side',
    type: 'select',
    order: 3,
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    search: true,
    dicUrl: '/api/blade-system/dict/dictionary?code=side_type',
    rules: [
      {
        required: true,
        message: '请选择 面向',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '设备品牌',
    prop: 'machineBrand',
    search: true
  },
  {
    label: '站位表版本',
    prop: 'tableVersion'
  },
  {
    label: '状态',
    prop: 'status',
    align: 'center',
    search: true,
    type: 'select',
    dicData: [
      { label: '启用', value: 1 },
      { label: '禁用', value: 0 }
    ]
  },
  {
    label: '站位表编码',
    prop: 'code',
    rules: [
      {
        required: true,
        message: '请输入站位表编码',
        trigger: 'blur'
      }
    ]
  }
];
//洛伦兹的
export const MACHINE_MODEL_COLUMN = [
  {
    label: '产品编码', //，可以多个，‘，’分隔，供详情选择产品时过滤使用
    prop: 'partNos',
    disabled: true,
    search: true,
    rules: [
      {
        required: true,
        message: '请输入产品编码',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '产品名称',
    prop: 'partNames'
  },
  {
    label: '产品型号',
    prop: 'partModel'
  },
  {
    label: '站位表名称',
    prop: 'name',
    order: 2,
    search: true
  },
  {
    label: '面向',
    prop: 'side',
    type: 'select',
    order: 3,
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    search: true,
    dicUrl: '/api/blade-system/dict/dictionary?code=side_type',
    rules: [
      {
        required: true,
        message: '请选择 面向',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '设备型号',
    prop: 'machineModel',
    search: true
  },
  {
    label: '站位表版本',
    prop: 'tableVersion'
  },
  {
    label: '状态',
    prop: 'status',
    align: 'center',
    search: true,
    type: 'select',
    dicData: [
      { label: '启用', value: 1 },
      { label: '禁用', value: 0 }
    ]
  },
  {
    label: '站位表编码',
    prop: 'code',
    rules: [
      {
        required: true,
        message: '请输入站位表编码',
        trigger: 'blur'
      }
    ]
  }
];

//===================详情=====================
//核达的详情
export const MACHINE_COLUMN_DETAIL = [
  {
    label: '站位表名称',
    prop: 'name',
    disabled: true
  },
  {
    label: '机型',
    prop: 'partModel',
    disabled: true
  },
  {
    label: '面向',
    prop: 'side',
    type: 'select',
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    dicUrl: '/api/blade-system/dict/dictionary?code=side_type',
    disabled: true
  },
  {
    label: '机台号',
    prop: 'machineCode',
    disabled: true,
    order: 4
  },
  {
    label: '站位表版本',
    disabled: true,
    prop: 'tableVersion'
  },
  {
    label: '站位表编码',
    prop: 'code',
    disabled: true,
    rules: [
      {
        required: true,
        message: '请输入站位表编码',
        trigger: 'blur'
      }
    ]
  }
];
// 产品的详情
export const MACHINE_BRAND_COLUMN_DETAIL = [
  {
    label: '产品编码', //，可以多个，‘，’分隔，供详情选择产品时过滤使用
    prop: 'partNos',
    disabled: true,
    rules: [
      {
        required: true,
        message: '请输入产品编码',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '产品名称',
    disabled: true,
    prop: 'partNames'
  },
  {
    label: '产品型号',
    prop: 'partModel',
    disabled: true
  },
  {
    label: '站位表名称',
    prop: 'name',
    disabled: true
  },
  {
    label: '面向',
    prop: 'side',
    type: 'select',
    order: 3,
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    disabled: true,
    dicUrl: '/api/blade-system/dict/dictionary?code=side_type'
  },
  {
    label: '设备品牌',
    prop: 'machineBrand',
    disabled: true
  },
  {
    label: '站位表版本',
    prop: 'tableVersion',
    disabled: true
  },
  {
    label: '站位表编码',
    prop: 'code',
    disabled: true
  }
];
//洛伦兹的详情
export const MACHINE_MODEL_COLUMN_DETAIL = [
  {
    label: '产品编码', //，可以多个，‘，’分隔，供详情选择产品时过滤使用
    prop: 'partNos',
    disabled: true
  },
  {
    label: '产品名称',
    prop: 'partNames',
    disabled: true
  },
  {
    label: '产品型号',
    prop: 'partModel',
    disabled: true
  },
  {
    label: '站位表名称',
    prop: 'name',
    disabled: true
  },
  {
    label: '面向',
    prop: 'side',
    type: 'select',
    order: 3,
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    disabled: true,
    dicUrl: '/api/blade-system/dict/dictionary?code=side_type'
  },
  {
    label: '设备型号',
    prop: 'machineModel',
    disabled: true
  },
  {
    label: '站位表版本',
    prop: 'tableVersion',
    disabled: true
  },
  {
    label: '站位表编码',
    prop: 'code',
    disabled: true
  }
];

//===================编辑=====================
//核达的编辑
export const MACHINE_COLUMN_EDIT = [
  {
    label: '站位表名称',
    prop: 'name'
  },
  {
    label: '机型',
    prop: 'partModel'
  },
  {
    label: '面向',
    prop: 'side',
    type: 'select',
    order: 3,
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    dicUrl: '/api/blade-system/dict/dictionary?code=side_type',
    rules: [
      {
        required: true,
        message: '请选择面向',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '机台号',
    prop: 'machineCode',
    rules: [
      {
        required: true,
        message: '请输入机台号',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '站位表版本',
    prop: 'tableVersion',
    rules: [
      {
        required: true,
        message: '请输入站位表版本',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '站位表编码',
    prop: 'code',
    disabled: true
  }
];
// 产品的编辑
export const MACHINE_BRAND_COLUMN_EDIT = [
  {
    label: '产品编码', //，可以多个，‘，’分隔，供详情选择产品时过滤使用
    prop: 'partNos',
    disabled: true,
    search: true,
    rules: [
      {
        required: true,
        message: '请输入产品编码',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '产品名称',
    prop: 'partNames',
    disabled: true
  },
  {
    label: '产品型号',
    prop: 'partModel',
    disabled: true
  },
  {
    label: '站位表名称',
    prop: 'name',
    rules: [
      {
        required: true,
        message: '请输入站位表名称',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '面向',
    prop: 'side',
    type: 'select',
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    dicUrl: '/api/blade-system/dict/dictionary?code=side_type',
    rules: [
      {
        required: true,
        message: '请选择 面向',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '设备品牌',
    prop: 'machineBrand',
    rules: [
      {
        required: true,
        message: '请输入设备品牌',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '站位表版本',
    prop: 'tableVersion'
  },
  {
    label: '站位表编码',
    prop: 'code',
    disabled: true
  }
];
//洛伦兹的编辑
export const MACHINE_MODEL_COLUMN_EDIT = [
  {
    label: '产品编码', //，可以多个，‘，’分隔，供详情选择产品时过滤使用
    prop: 'partNos',
    rules: [
      {
        required: true,
        message: '请输入产品编码',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '产品名称',
    prop: 'partNames',
    disabled: true
  },
  {
    label: '产品型号',
    prop: 'partModel',
    disabled: true
  },
  {
    label: '站位表名称',
    prop: 'name'
  },
  {
    label: '面向',
    prop: 'side',
    type: 'select',
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    dicUrl: '/api/blade-system/dict/dictionary?code=side_type',
    rules: [
      {
        required: true,
        message: '请选择 面向',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '设备型号',
    prop: 'machineModel',
    rules: [
      {
        required: true,
        message: '请输入 设备型号',
        trigger: 'blur'
      }
    ]
  },
  {
    label: '站位表版本',
    prop: 'tableVersion'
  },
  {
    label: '站位表编码',
    prop: 'code',
    rules: [
      {
        required: true,
        message: '请输入站位表编码',
        trigger: 'blur'
      }
    ]
  }
];
